package com.market.cash.device.http

import com.market.cash.device.DVSycBuilder


object DVUrlHelper {

    fun combineUrl(): String {
        if (DVSycBuilder.host.isBlank() or DVSycBuilder.zone.isBlank() or DVSycBuilder.pathCommon.isBlank()) {
            return ""
        }

        val zone = DVSycBuilder.zone
        DVSycBuilder.zone = zone.replace("/", "")

        val pathCommon = DVSycBuilder.pathCommon
        DVSycBuilder.pathCommon = pathCommon.replace("/", "")

        return DVSycBuilder.host + "/" + DVSycBuilder.zone + "/" + DVSycBuilder.pathCommon
    }
}